package chap03;
public class inherit {
    public static void main(String[] args) {
        // achieve class of inherit
        Bird bird = new Bird();
        bird.eat();
        bird.run();
    }
}

class animal {
    public boolean live = true;
    public String skin = "";
    public void eat() {
        System.out.println("animal need eat something");
    }

    public void move() {
        System.out.println("animal can move");
    }
}

class Bird extends animal {
    public String skin = "羽毛";

    public void run() {
        System.out.println("it can fly to sky");
    }
}